<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title></title>
    <script src="js/template.js"></script>
    <script src="http://cdn.bootcss.com/jquery/2.1.4/jquery.js"></script>
    <script src="js/qr.js"></script>
    
    <script id="eChapterlist" type="text/html">
        {{each resEChs as value index}}
        <div class="hex_hte">{{value.Name}}</div>
        <div hex_eChapter={{value.Key}} class="hex_hte">{{value.Key}}</div>
        {{/each}}
    </script>
    <script id="eChapterHtelist" type="text/html">
        {{each EChapterAndHTEsid as value index}}
        <div hex_hteid={{value.HTEID}} class="hex_hte">{{value.HTEID}}</div>
        {{/each}}
    </script>
    <script id="htelist" type="text/html">
        {{each exercisePoolHTEModels as value index}}
        <div hex_hteid={{value.HTEId}} class="hex_hte">{{value.HTEId}}</div>
        {{/each}}
    </script>
    <script id="exerciselist" type="text/html">
        <table style="border-spacing: 0;border-collapse: collapse;width:600px;display: block;border-bottom: 1px solid black;">
            <tbody style="width:100%;display: block;">
                {{each exerciseInPoolModels as value index}}
                <tr style="width:100%;display: flex;">
                    <td style="border-right: 1px solid black;width:540px;flex:1;overflow:hidden;border-left: 1px solid black;border-top: 1px solid black;">
                        <div hex_exerciseid={{value.ExerciseId}} class="hex_exercise">{{value.ExerciseId}}</div>
                    </td>
                    <td style="width:60px;flex:none;border-right: 1px solid black;border-top: 1px solid black;">
                        <img src='{{value.ExerciseId | urlFormat: ' 0 '}}'/>
                    </td>
                </tr>
                {{/each}}
            </tbody>
        </table>
        </br>
    </script>
    <script id="choiceExercise" type="text/html">
        <div>
            {{#ExerciseSubject}}
        </div>
        <div>
            <b>关联知识点：</b>{{Tips[0].Content}}
        </div>
        <div>
            <b>正确答案：</b>
            <ul>
                {{each AnswersOptions as value index}}
                <li>{{#value}}</li>
                {{/each}}
            </ul>
        </div>
    </script>
    <script id="JudgmentExercise" type="text/html">
        <div>
            {{#ExerciseSubject}}
        </div>
        <div>
            <b>关联知识点：</b>{{Tips[0].Content}}
        </div>
        <div>
            <b>正确答案：</b>{{CAnswer}}
        </div>
    </script>
    <script id="SubjectiveExercise" type="text/html">
        <div>
            {{#ExerciseSubject}}
        </div>
        <div>
            <b>关联知识点：</b>{{Tips[0].Content}}
        </div>
        <div>
            <b>正确答案：</b>{{#SubjectiveAnswer}}
        </div>
    </script>
    <script id="ChoiceFillBlankExercise" type="text/html">
        <div>
            {{#ExerciseSubject}}
        </div>
        <div>
            <b>关联知识点：</b>{{Tips[0].Content}}
        </div>
        <div>
            <b>正确答案：</b>
            <ul>
                {{each ChoiceFillBlankAnswers as value index}} {{each value.ChoiceFillBlankAnswerOptions as value2 index}} {{if value2.IsAnswer=='true'}}
                <li>{{value2.Content}}</li>
                {{/if}} {{/each}} {{/each}}
            </ul>
        </div>
    </script>
    <script id="ComputeExercise" type="text/html">
        <div>
            {{#ExerciseSubject}}
        </div>
        <div style="margin-left:25px;">
            <span>小题：</span>
            {{each Questions as value index}}
            <div>序号：{{index+1}}</div>
            <div hex_exerciseid={{value.ExerciseId}} class="hex_cexercise">{{value.ExerciseId}}</div>
            {{/each}}
        </div>

    </script>
    <script id="fillblankExercise" type="text/html">
        <div>
            {{#ExerciseSubject}}
        </div>
        <div>
            <b>关联知识点：</b>{{Tips[0].Content}}
        </div>
        <div>
            <b>正确答案：</b>
            <ul>
                {{each FillBlankAnswers as value index}} {{each value.FillBlankAnswerOptions as value2 index}}
                <li>{{#value2.Content}}</li> {{/each}} {{/each}}
            </ul>
        </div>
    </script>
    <script id="ProgramExercise" type="text/html">
        <div>
            {{#ExerciseSubject}}
        </div>
        <div>
            <b>关联知识点：</b>{{Tips[0].Content}}
        </div>
        <div>
            <b>正确答案：</b>{{#Note}}
        </div>
    </script>
    <script src="js/showHTE2.js"></script>
</head>

<body>
    <div>生成习题中，剩余数量：<span id="state"></span></div>
    <div id="url" style="display:none;">
        <form method="post" id="uploadForm" action="/test">
            <input type="hidden" id="hidden_html" name="html" value="">
            <input type="submit" value="下载" id="test">
        </form>
    </div>
    </br>
    <div id="content"></div>
</body>

</html>